#include "oglRenderer.h"


USING_NAMESPACE_OXGE

oglDisplayList::oglDisplayList()
{
	m_dspListID =  glGenLists(1);
}

void oglDisplayList::start()
{
	glNewList(m_dspListID,GL_COMPILE);
}

void oglDisplayList::end()
{
	glEndList();
}

oglDisplayList::~oglDisplayList()
{
	glDeleteLists(m_dspListID,1);
}

void oglDisplayList::Apply()
{
	glCallList(m_dspListID);
}